﻿@{
    ViewBag.Title = "岗位发布";
}
@section headerSection{
    <style>
        .float-unit {
            height: 100%;
            border: 1px solid #E7EAEC;
            border-top-width: 0px;
            border-bottom-width: 0px;
            margin-bottom: 0px;
        }

        .left-sm-3 {
            padding-left: 0px;
        }

        .right-sm-9 {
            padding-right: 0px;
        }

        .ibox-unit {
            overflow-y: auto;
            height: 89%;
            padding: 0px;
        }

        #exampleToolbar div {
            margin-bottom: 0px;
        }

        #exampleToolbar > .form-group {
            float: left;
            margin: 0;
            margin-right: 5px;
            margin-top: 1px;
        }

        .form-group > button {
            margin-top: -2px;
            margin-bottom: 2px;
        }
    </style>
}
<div class="wrapper animated fadeInRight autoHeight">
    <!-- Panel Other -->
    <div class="row autoHeight" style="background-color: #fff;">
        <div class="col-sm-12 col-sm-leftRight" style="margin-top: 2px;">
            <!-- Example Toolbar -->
            <div class="example">
                <div class="btn-group hidden-xs" id="exampleToolbar" role="group">
                    @{
                        List<string> folderList = (List<string>)ViewBag.elementList;
                        if (folderList.Contains("jobDetail"))
                        {
                            <button id="jobDetail" type="button" class="btn btn-outline btn-primary">
                                <i class="glyphicon glyphicon-th-large" aria-hidden="true">详细</i>
                            </button>
                        }
                        if (folderList.Contains("jobAdd"))
                        {
                            <button id="jobAdd" type="button" class="btn btn-outline btn-primary">
                                <i class="glyphicon glyphicon-plus" aria-hidden="true">添加</i>
                            </button>
                        }
                        if (folderList.Contains("jobEdit"))
                        {
                            <button id="jobEdit" type="button" class="btn btn-outline btn-primary">
                                <i class="glyphicon glyphicon-pencil" aria-hidden="true">编辑</i>
                            </button>
                        }
                        if (folderList.Contains("jobDel"))
                        {
                            <button id="jobDel" type="button" class="btn btn-outline btn-danger">
                                <i class="glyphicon glyphicon-trash" aria-hidden="true">删除</i>
                            </button>
                        }
                        if (folderList.Contains("btnSearch"))
                        {
                            <div class="form-group">
                                <input id="workType" name="workType" type="text" class="form-control" placeholder="请输入行业/岗位">
                            </div>
                            <div class="form-group">
                                <input id="wageStart" name="wageStart" type="text" class="form-control" style="width:150px;" placeholder="请输入起薪">
                            </div>
                            <div class="form-group">
                                <input id="wageEnd" name="wageEnd" type="text" class="form-control" style="width:150px;" placeholder="请输入薪资截止">
                            </div>
                            <div class="form-group" style="margin-top:-1px;">
                                <select id="useStatus" name="useStatus" title="请选择状态" class="form-control show-tick selectpicker" placeholder="请选择状态" style="padding: 5px 10px;">
                                    <option value=0 selected>全部</option>
                                    <option value=1>待发布</option>
                                    <option value=2>已发布</option>
                                    <option value=3>已结束</option>
                                    <option value=4>已作废</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <button id="btnSearch" class="btn btn-primary" type="button"><i class="fa fa-search"></i>&nbsp;查询</button>
                            </div>
                        }
                    }
                </div>
                <table id="exampleTableToolbar" data-mobile-responsive="true" data-radio="true"></table>
            </div>
            <!-- End Example Toolbar -->
        </div>
    </div>
    <!-- End Panel Other -->
</div>
<!-- 添加/编辑 -->
<div id="org_form" style="width: 1000px; height:100%; overflow-x: hidden; display: none;">
    <form class="form-horizontal m-t" id="orgFormTable" method="post" enctype="multipart/form-data">
        <div class="form-group">          
            <label class="col-sm-2 control-label">标题<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-4">
                <input id="job_title" name="job_title" type="text" class="form-control input-sm" required="" aria-required="true" placeholder="请输入标题" title="请输入标题" />
                <input type="hidden" id="job_id" name="job_id"/>
                <input type="hidden" id="unit_path" name="unit_path"/>
            </div>
            <label class="col-sm-2 control-label">岗位<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-4">
                <select id="work_type" name="work_type" class="form-control show-tick selectpicker" data-live-search="true" placeholder="请选择岗位" required="" aria-required="true"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">行业：</label>
            <div class="col-sm-4">
                <input id="trade_type" name="trade_type" type="text" class="form-control input-sm" placeholder="请输入行业" title="请输入行业" />
            </div>
            <label class="col-sm-2 control-label">工作城市：</label>
            <div class="col-sm-4">
                <select id="work_city" name="work_city" class="form-control show-tick selectpicker" data-live-search="true" placeholder="请选择工作城市">
                    <option value="" selected>面议</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">工作地址：</label>
            <div class="col-sm-4">
                <input id="addr" name="addr" type="text" class="form-control input-sm" placeholder="请输入工作地址" title="请输入工作地址" />
            </div>
            <label class="col-sm-2 control-label">薪酬起薪：</label>
            <div class="col-sm-4">
                <input id="use_wage_start" name="use_wage_start" type="text" value="0" class="form-control input-sm" placeholder="请输入起薪" title="请输入起薪" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">薪酬最高：</label>
            <div class="col-sm-4">
                <input id="use_wage_end" name="use_wage_end" type="text" value="0" class="form-control input-sm" placeholder="请输入薪酬最高" title="请输入薪酬最高" />
            </div>
            <label class="col-sm-2 control-label">性别<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-4">
                <select id="use_sex" name="use_sex" title="请选择性别" class="form-control show-tick selectpicker" required="" aria-required="true" placeholder="请选择性别" style="padding: 5px 10px;">
                     <option value="" selected>不限</option>
                     <option value="男">男</option>
                     <option value="女">女</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">年龄：</label>
            <div class="col-sm-4">
                <select id="use_age" name="use_age" class="form-control show-tick selectpicker" data-live-search="true" placeholder="请选择年龄">
                    <option value="" selected>不限</option>
                </select>
            </div>
            <label class="col-sm-2 control-label">招聘人数：</label>
            <div class="col-sm-4">
                <input id="use_num" name="use_num" type="text" class="form-control input-sm" placeholder="请输入招聘人数" title="请输入招聘人数" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">学历：</label>
            <div class="col-sm-4">
                <select id="use_edu" name="use_edu" class="form-control show-tick selectpicker" data-live-search="true" placeholder="请选择学历">
                    <option value="" selected>不限</option>
                </select>
            </div>
            <label class="col-sm-2 control-label">联系电话：</label>
            <div class="col-sm-4">
                <input id="use_phone" name="use_phone" type="text" class="form-control input-sm" placeholder="请输入联系电话" title="请输入联系电话" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">联系邮箱：</label>
            <div class="col-sm-4">
                <input id="use_email" name="use_email" type="text" class="form-control input-sm" placeholder="请输入联系邮箱" title="请输入联系邮箱" />
            </div>
            <label class="col-sm-2 control-label">工作经验：</label>
            <div class="col-sm-4">
                <select id="use_ageLimit" name="use_ageLimit" class="form-control show-tick selectpicker" data-live-search="true" placeholder="请选择工作年限"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">专业要求：</label>
            <div class="col-sm-4">
                <input id="use_major" name="use_major" type="text" class="form-control input-sm" placeholder="请输入相关专业" title="请输入相关专业" />
            </div>
            <label class="col-sm-2 control-label">就职日期：</label>
            <div class="col-sm-4">
                <input id="work_start" name="work_start" type="text" class="form-control input-sm" placeholder="请选择就职日期" title="请选择就职日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-4">
                <select id="use_status" name="use_status" title="请选择状态" class="form-control show-tick selectpicker" required="" aria-required="true" placeholder="请选择状态" style="padding: 5px 10px;">
                    <option value=1 selected>待发布</option>
                    <option value=2>已发布</option>
                    <option value=3>已结束</option>
                    <option value=4>已作废</option>
                </select>
            </div>
            <label class="col-sm-2 control-label">公司规模：</label>
            <div class="col-sm-4">
                <input id="com_scale" name="com_scale" type="text" class="form-control input-sm" placeholder="请选择公司规模" title="请选择公司规模" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">公司名称<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-4">
                <input id="com_name" name="com_name" type="text" class="form-control input-sm" placeholder="请输入公司名称" title="请输入公司名称" required="" aria-required="true"/>
            </div>
            <label class="col-sm-2 control-label">公司福利：</label>
            <div class="col-sm-4">
                <input type="hidden" id="useWelfareValue" name="useWelfareValue"/>
                <select id="use_welfare" name="use_welfare" class="form-control show-tick selectpicker" data-live-search="true" multiple placeholder="请选择公司福利"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">职位描述<span class="glyphicon glyphicon-asterisk requiredtitle"></span>：</label>
            <div class="col-sm-4">
                <textarea class="form-control" id="postNote" name="postNote" rows="6" required="" aria-required="true" placeholder="请输入职位描述" title="请输入职位描述"></textarea>
            </div>
            <label class="col-sm-2 control-label">公司简介描述：</label>
            <div class="col-sm-4">
                <textarea class="form-control" id="use_note" name="use_note" rows="3" placeholder="请输入公司简介描述" title="请输入公司简介描述"></textarea>
            </div>
        </div>
    </form>
</div>
@section footSection{
    <script src="~/Resources/myScript/Job/jobListManager.js"></script>
    <script>
        $(function () {
            //初始化Page
            jobListManager.initPage();
            //$('#file-pretty input[type="file"]').prettyFile();
        });
    </script>
}

